// 简单测试脚本
console.log('🎨 开始简单测试...')

// 检查 GameStore
if (window.gameStore) {
  console.log('✅ GameStore 可用')
  console.log('当前玩家:', window.gameStore.currentPlayer)
  console.log('玩家列表:', window.gameStore.players)
  
  // 检查颜色
  const players = window.gameStore.players
  if (players && players.length > 0) {
    console.log('\n玩家颜色:')
    players.forEach((player, index) => {
      console.log(`${index + 1}. ${player.nickname}: 头像=${player.avatarColor}, 画笔=${player.brushColor}`)
    })
    
    // 检查是否有重复颜色
    const brushColors = players.map(p => p.brushColor).filter(c => c)
    const uniqueColors = new Set(brushColors)
    
    if (brushColors.length === uniqueColors.size) {
      console.log('✅ 所有玩家都有不同的画笔颜色')
    } else {
      console.log('❌ 有重复的画笔颜色')
      console.log('画笔颜色:', brushColors)
    }
  } else {
    console.log('❌ 没有玩家')
  }
} else {
  console.log('❌ GameStore 不可用')
}

console.log('测试完成')
